package com.googlecode.mocklipse;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.compiler.IProblem;
import org.eclipse.jdt.ui.text.java.IInvocationContext;
import org.eclipse.jdt.ui.text.java.IJavaCompletionProposal;
import org.eclipse.jdt.ui.text.java.IProblemLocation;
import org.eclipse.jdt.ui.text.java.IQuickFixProcessor;

public class MockitoQuickFixProcessor implements IQuickFixProcessor {

	public IJavaCompletionProposal[] getCorrections(IInvocationContext context,
			IProblemLocation[] locations) throws CoreException {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean hasCorrections(ICompilationUnit unit, int problemId) {
		boolean problemIdIsUndefinedName = problemId == IProblem.UndefinedName;
		if (problemIdIsUndefinedName) {
			System.out.println("Undefined name");
		}
		return problemIdIsUndefinedName;
	}

}
